package com.ly.heart.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ly.heart.domain.KingInventoryMaterialDetailSerialEntity;
import com.ly.heart.mapper.KingInventoryMaterialDetailSerialMapper;
import com.ly.heart.service.IKingInventoryMaterialDetailSerialService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 金蝶-入库/出库明细序列号Service业务层处理
 *
 * @author cxl
 * @date 2024-07-13
 */
@Service
public class KingInventoryMaterialDetailSerialServiceImpl extends ServiceImpl<KingInventoryMaterialDetailSerialMapper,KingInventoryMaterialDetailSerialEntity> implements IKingInventoryMaterialDetailSerialService {

    @Resource
    private KingInventoryMaterialDetailSerialMapper kingInventoryMaterialDetailSerialMapper;

    /**
     * 查询金蝶-入库/出库明细序列号
     *
     * @param id 金蝶-入库/出库明细序列号ID
     * @return 金蝶-入库/出库明细序列号
     */
    @Override
    public KingInventoryMaterialDetailSerialEntity selectKingInventoryMaterialDetailSerialEntityById(String id)
    {
        return kingInventoryMaterialDetailSerialMapper.selectKingInventoryMaterialDetailSerialEntityById(id);
    }

    /**
     * 查询金蝶-入库/出库明细序列号列表
     *
     * @param kingInventoryMaterialDetailSerialEntity 金蝶-入库/出库明细序列号
     * @return 金蝶-入库/出库明细序列号
     */
    @Override
    public List<KingInventoryMaterialDetailSerialEntity> selectKingInventoryMaterialDetailSerialEntityList(KingInventoryMaterialDetailSerialEntity kingInventoryMaterialDetailSerialEntity)
    {
        return kingInventoryMaterialDetailSerialMapper.selectKingInventoryMaterialDetailSerialEntityList(kingInventoryMaterialDetailSerialEntity);
    }

    /**
     * 新增金蝶-入库/出库明细序列号
     *
     * @param kingInventoryMaterialDetailSerialEntity 金蝶-入库/出库明细序列号
     * @return 结果
     */
    @Override
    public int insertKingInventoryMaterialDetailSerialEntity(KingInventoryMaterialDetailSerialEntity kingInventoryMaterialDetailSerialEntity)
    {
        return kingInventoryMaterialDetailSerialMapper.insertKingInventoryMaterialDetailSerialEntity(kingInventoryMaterialDetailSerialEntity);
    }

    /**
     * 修改金蝶-入库/出库明细序列号
     *
     * @param kingInventoryMaterialDetailSerialEntity 金蝶-入库/出库明细序列号
     * @return 结果
     */
    @Override
    public int updateKingInventoryMaterialDetailSerialEntity(KingInventoryMaterialDetailSerialEntity kingInventoryMaterialDetailSerialEntity)
    {
        return kingInventoryMaterialDetailSerialMapper.updateKingInventoryMaterialDetailSerialEntity(kingInventoryMaterialDetailSerialEntity);
    }

    /**
     * 批量删除金蝶-入库/出库明细序列号
     *
     * @param ids 需要删除的金蝶-入库/出库明细序列号ID
     * @return 结果
     */
    @Override
    public int deleteKingInventoryMaterialDetailSerialEntityByIds(String[] ids)
    {
        return kingInventoryMaterialDetailSerialMapper.deleteKingInventoryMaterialDetailSerialEntityByIds(ids);
    }

    /**
     * 删除金蝶-入库/出库明细序列号信息
     *
     * @param id 金蝶-入库/出库明细序列号ID
     * @return 结果
     */
    @Override
    public int deleteKingInventoryMaterialDetailSerialEntityById(String id)
    {
        return kingInventoryMaterialDetailSerialMapper.deleteKingInventoryMaterialDetailSerialEntityById(id);
    }
}
